package com.weme.chat.bean


data class GiftMessage(

    val giftIcon: String,
    val giftImageURL: String,
    val giftName :String
)
fun GiftMessage.toMap(): Map<String, String> {
    val map = mutableMapOf<String, String>()

    map["giftIcon"] = giftIcon
    map["giftImageURL"] = giftImageURL
    map["giftName"] = giftName
    return map
}



data class CallMessage(
    val isMatching: Boolean = false, // 是否是匹配电话，默认为 false
    val callTime: Long = 0, // 通话时间，默认为 0
) {
    fun toMap(): Map<String, String> {
        return mapOf(
            "isMatching" to isMatching.toString(), // 将 Boolean 转换为 String
            "callTime" to callTime.toString(), // 将 Long 转换为 String

        )
    }
}



data class SystemMessage(
    val system_type: String,
)
fun SystemMessage.toMap(): Map<String, String> {
    val map = mutableMapOf<String, String>()
    map["system_type"] = system_type
    return map
}